<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body background="img/2.jpg">
<div th:replace="commons/managerbar::topbar"></div>
<div style="font-size:18px;position: center" >
    <div style="width:300px;float: left">
        <ul class="list-group" style="width:260px" >
            <li>原始信息如下：</li>
            <li  class="list-group-item">Name:<a th:text="${user.name}"></a></li>
            <li class="list-group-item">Password:<a th:text="${user.password}"></a></li>
            <li class="list-group-item">Phone:<a th:text="${user.phone}"></a></li>
            <li class="list-group-item">Email:<a th:text="${user.email}"></a></li>
            <li class="list-group-item">Manager:<a th:text="${user.manager}"></a></li>
            <li class="list-group-item">Phone:<a th:text="${user.look}"></a></li>
            <li class="list-group-item">Email<a th:text="${#dates.format(user.data,'yyyy-MM-dd')}"></a></li>
        </ul>
    </div>
    <div style="width:800px;float: left">
        <form class="form-horizontal" method="post" action="/manager/user/update" >
            <div class="form-group">
                <div class="col-sm-10">
                    Name:<input type="text" style="width: 200px" th:value="${user.name}" class="form-control" name="name"  placeholder="name">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-10">
                    Password:<input type="password" style="width: 200px" th:value="${user.password}" class="form-control" name="password" id="inputPassword3" placeholder="Password">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-10">
                    Email:<input type="email" style="width: 200px" th:value="${user.email}" class="form-control" name="email"  placeholder="Email">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-10">
                    Phone:<input type="text" style="width: 200px" th:value="${user.phone}" class="form-control" name="phone"  placeholder="电话">
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-10">
                    Manager:<input type="text" style="width: 200px" th:value="${user.manager}" class="form-control" name="manager" placeholder="Manager">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-default">sumbit</button>
                </div>
            </div>
        </form>
   </div>
</div>
<a style="color: #d21e1e" th:text="${msg}"></a><br/>
<a href="/home">返回主页</a>
</body>

</html>